package com.hzncc.flowable_diboot.vo;

import com.diboot.core.binding.annotation.BindDict;
import com.diboot.core.binding.annotation.BindField;
import com.diboot.core.vo.LabelValue;
import com.diboot.iam.entity.IamUser;
import com.hzncc.flowable_diboot.entity.FormDesign;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 表单设计 VO定义
 *
 * @author MyName
 * @version 1.0
 * @date 2024-07-17
 * Copyright © MyCorp
 */
@Getter
@Setter
@Accessors(chain = true)
public class FormDesignListVO extends FormDesign {
    private static final long serialVersionUID = 1913332080761742583L;
    /**
     * 创建人 关联信息
     */

    @BindField(
            entity = IamUser.class,
            field = "realname",
            condition = "this.create_by = id"
    )
    private String createByLabel;

    /**
     * 更新人 关联信息
     */

    @BindField(
            entity = IamUser.class,
            field = "realname",
            condition = "this.update_by = id"
    )
    private String updateByLabel;

    /**
     * 表单类型
     */
    @BindDict(type = "formCate", field = "cate")
    private LabelValue cateLabel;

}